class Car :
    def __init__(self,type,no):
        self.type,self.no = type,no

    def start(self):
        pass

    def end(self):
        pass

class Taxi(Car) :
    def __init__(self,type,no,py):
        super().__init__(type,no)
        self.py = py

    def  start(self):
        print('乘客您好')
        print(f'我是{self.py}出租车公司的，我的车牌是：{self.no},您要去哪里?')

    def end(self):
        print('目的地到了，请您付费下次，欢迎再次乘车')

class Family_car(Car) :
    def __init__(self,type,no,name):
        super().__init__(type,no)
        self.name = name
    def start(self):
        print(f'我是{self.name},我的汽车我做主')
    def end(self):
        print(f'目的地到了，我们去玩玩吧')


if __name__ == "__main__" :
    taxi = Taxi('江淮','京A:88888','长城')
    taxi.start()
    taxi.end()
    print('-'*30)
    my_car = Family_car('江淮','皖A:88888','武大郎')
    my_car.start()
    my_car.end()

